<template>
  <router-link
    :to="{
      path: '/detail',
      query: {
        member_sn: item.member_sn,
      },
    }"
  >
    <div class="item pointer">
      <div class="imgDiv">
        <img :src="item.avatar" alt="" />
      </div>
      <div class="name">{{ item.nickname }}</div>
      <div class="desc ovh2">
        {{ item.soliloquy }}
      </div>
      <div class="tag">
        <span v-for="tag in item.info" :key="tag">{{ tag }}</span>
      </div>
    </div></router-link
  >
</template>

<script>
export default {
  name: "footerView",
  data() {
    return {};
  },
  props: ["item"],
  methods: {},
};
</script>

<style scoped lang="scss">
.item {
  padding: 10px;
  background: #fff;
  border: 1px solid #ebebeb;
  .imgDiv {
    height: 250px;
  }
  .name {
    font-size: 20px;
    color: #f43c8a;
    line-height: 1;
    margin-top: 16px;
  }
  .desc {
    font-size: 14px;
    color: #666666;
    line-height: 18px;
    margin: 14px 0;
  }
  .tag {
    color: #f43c8a;
    font-size: 12px;
    flex-wrap: wrap;
    display: flex;

    span {
      display: block;
      border-radius: 2px;
      border: 1px solid #f43c8a;
      line-height: 20px;
      padding: 0 8px;
      margin-right: 6px;
      margin-bottom: 6px;
      white-space: nowrap;
    }
  }
}
@media screen and (max-width: 768px) {
  .item {
    .imgDiv {
      height: 130px;
    }
    .name {
      font-size: 16px;
      margin-top: 12px;
    }
    .desc {
      font-size: 12px;
      line-height: 14px;
      margin: 8px 0;
    }
  }
}
</style>
